// import request from "@/utils/request";


import request from "../../../utils/request";

export function listsnmanagement(query) {
  return request({
    url: '/snmanagement/printerSn/list',
    method: 'get',
    params: query
  })
}
export function updatePrinterSn(data) {
  return request({
    url: '/snmanagement/printerSn',
    method: 'put',
    data: data // 使用请求体携带JSON对象数据到后端
  })
}

export function deletePrinterSn(id) {
  return request({
    url: '/snmanagement/printerSn/' + id,
    method: 'delete'
  })
}

export function addPrinterSn(data) {
  return request({
    url: '/snmanagement/printerSn',
    method: 'post',
    data: data // 使用请求体携带JSON对象数据到后端
  })
}
// 导入打印机序列号
export function importPrinterSn(data) {
  return request({
    url: '/snmanagement/printerSn/import',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}



